import java.awt.*;
import java.applet.*;
import java.lang.*;
import java.net.*;
import java.io.*; 

public class ShowImage extends Applet
{
	Image picture;
	public void init()
	{
		//picture = getImage(getCodeBase(),"Angel1.jpg");
		//String url = "http://localhost/test.jsp";
		String url = "http://localhost/jsp-examples/HelloWorld.html";
		try{
			URL server = new URL(url);
			//picture = getImage(server,"angle1.jpg");
			picture = getImage(server,"pic1.jpg");
	    	}
		catch ( IOException e ) { e.printStackTrace(); }


		
	}
	public void paint(Graphics g)
	{
		g.drawImage(picture,0,0,this);
	}
}